package repository

import (
	"gitee.com/ling1314/origin-utility/db"
	"gitee.com/ling1314/origin-utility/model"
)

type idpWarnRepository struct{}

// SaveLoadWarn 保存cpu和内存负载警告信息
func (r idpWarnRepository) SaveLoadWarn(m model.IdpWarnLoad) (err error) {
	return db.GetDB().Create(&m).Error
}

// SaveHostnameChange 保存windows登录名变化记录
func (r idpWarnRepository) SaveHostnameChange(m model.IdpWarnHostname) (err error) {
	return db.GetDB().Create(&m).Error
}
